﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ROLE.aspx.cs" Inherits="ZHONGLANGWEBUI.ZHONGLANG.SYS.ROLE" %>
<%@ Register Src="../../ZhongLang/TT_DGHEADPAGE.ascx" TagName="PagerNavigation" TagPrefix="ucPage" %>
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"><title>TT</title>
    <script type="text/javascript" src="../../ZhongLang/CSSJS/PageScript.js"></script>
    <script src="../../ZhongLang/CSSJS/My97DatePicker/WdatePicker.js"></script>
    <link href="../../ZhongLang/CSSJS/style.css?TT=CSS20161107" rel="stylesheet" />
    <link href="../../cssjs/css/bootstrap.min.css?v=3.3.6" rel="stylesheet" />
    <link href="../../cssjs/css/plugins/iCheck/custom.css" rel="stylesheet" />
    <link href="../../cssjs/css/plugins/sweetalert/sweetalert.css" rel="stylesheet" />
    <link href="../../cssjs/css/font-awesome.min.css?v=4.4.0" rel="stylesheet" />
    <link href="../../cssjs/css/animate.min.css" rel="stylesheet" />
    <link href="../../cssjs/css/style.min.css?v=1.0.0" rel="stylesheet" />
</head><body class="gray-bg"><div class="wrapper wrapper-content animated fadeInRight"><form id="frmTT" name="master" runat="server" role="form" class="form-inline">
<!-------------------------------------------------------------------------------------------------->
<div class="row" id="tabQuery" runat="server"><div class="col-sm-12"><div class="float-e-margins"><div class="ibox-content">
    <div class="form-group">
        <label>角色名称:</label><asp:TextBox ID="txtQROLENAME" runat="server" CssClass="form-control" MaxLength="32" />
        <label>状态:    </label><asp:DropDownList runat="server" CssClass="form-control" ID="ddlQROLESTATE" />  
    </div>
    <asp:Button ID="btnQuery" runat="server" CommandName="查询" Text="查询" CssClass="btn btn-w-m btn-outline btn-primary" OnClick="btn_Click" />
    <asp:Button ID="btnAdd" runat="server" CommandName="添加" Text="添加" CssClass="btn btn-w-m btn-success" OnClick="btn_Click" />
</div></div></div></div>
<!-------------------------------------------------------------------------------------------------->
<div style="overflow: auto; width: 100%;"><div id="tabShow" runat="server" style="overflow: auto; width: 100%;"><ucPage:PagerNavigation ID="pgShow" runat="server" />
    <asp:GridView ID="dgList" runat="server" Style="width: 100%" AutoGenerateColumns="False"
        OnRowCommand="dgList_RowCommand" OnRowDataBound="dgList_RowDataBound" OnSorting="dgList_Sorting" AllowSorting="true">
        <HeaderStyle CssClass="Gv_HeaderStyle" /><RowStyle CssClass="Gv_RowStyle" /><AlternatingRowStyle CssClass="Gv_AlternateStyle" />
        <Columns>
            <asp:TemplateField><ItemStyle HorizontalAlign="Center" /><HeaderTemplate>序</HeaderTemplate><ItemTemplate>
                    <label><%# this.dgList.PageIndex * this.dgList.PageSize + this.dgList.Rows.Count + 1%></label>
                </ItemTemplate></asp:TemplateField>
            <asp:TemplateField HeaderText="操作" ItemStyle-HorizontalAlign="Center"><ItemTemplate>
                    <asp:LinkButton ID="lbtnB" CssClass="btn btn-success fa fa-keyboard-o" Text=" 修改" runat="server" CommandArgument='<%#Eval("ROLEID")%>' CommandName="修改" />
                </ItemTemplate></asp:TemplateField>
            <asp:BoundField DataField="ROLECODE" HeaderText="角色编号" SortExpression="ROLECODE" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="ROLENAME" HeaderText="角色名称" SortExpression="ROLENAME" ItemStyle-HorizontalAlign="Left" />
            <asp:BoundField DataField="ROLEMENUNAME" HeaderText="包含菜单" SortExpression="ROLEMENUNAME" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="700" />
            <asp:BoundField DataField="ROLEINFO" HeaderText="角色描述" SortExpression="ROLEINFO" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="150" />
            <asp:BoundField DataField="ROLESTATENAME" HeaderText="状态" SortExpression="ROLESTATENAME" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="UPDATEMANNAME" HeaderText="操作人" SortExpression="UPDATEMANNAME" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="UPDATETIME" HeaderText="操作时间" SortExpression="UPDATETIME" ItemStyle-HorizontalAlign="Center" /> 
        </Columns>
    </asp:GridView> 
</div></div>
<!-------------------------------------------------------------------------------------------------->
<div class="row" id="tabEdit" runat="server" width="100%" visible="false">
    <div class="col-sm-12"><div class="float-e-margins"><div class="ibox-title"><h3>信息编辑</h3></div><div class="ibox-content">
    <div class="form-group">
        <div class="form-group">
            <label>角色编号:</label><asp:TextBox ID="txtEROLECODE" CssClass=" form-control" runat="server" MaxLength="8" />
            <label>角色名称:</label><asp:TextBox ID="txtEROLENAME" CssClass=" form-control" runat="server" MaxLength="16" />
            <label>角色描述:</label><asp:TextBox ID="txtEROLEINFO" CssClass=" form-control" runat="server" MaxLength="64" Width="300px" />
            <label>当前状态:</label><asp:DropDownList runat="server" CssClass="form-control" ID="ddlEROLESTATE" /> 
        </div> 
        <div class="hr-line-dashed"></div>  
        <div class="form-group"> 
            <h4><asp:Label ID="lblInfo" runat="server" Text="设置菜单时注意要勾选对应的顶层菜单！" /></h4> 
            <asp:CheckBoxList ID="chklEROLEMENU" RepeatColumns="12" RepeatDirection="Horizontal" runat="server" CssClass="checkbox i-checks" />
        </div> 
    </div> 
    <div class="hr-line-dashed"></div>
    <asp:Label ID="lblUpdate" runat="server" CssClass="LabelFont" /><br />
    <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btn_Click" CssClass="btn btn-w-m btn-outline btn-primary" CommandName="保存" />
    <asp:Button ID="btnClose" runat="server" Text="关闭" OnClick="btn_Click" CssClass="btn btn-w-m btn-successe" CommandName="关闭" />
</div></div></div></div>
<!------------------------------------------------------------------------------------------------------------------->
</form></div>
<script src="../../cssjs/js/jquery.min.js?v=2.1.4"></script>
<script src="../../cssjs/js/bootstrap.min.js?v=3.3.6"></script>
<script src="../../cssjs/js/content.min.js?v=1.0.0"></script>
<script src="../../cssjs/js/plugins/iCheck/icheck.min.js"></script>
<script src="../../cssjs/js/plugins/sweetalert/sweetalert.min.js"></script>
<script> $(document).ready(function () { $(".i-checks").iCheck({ checkboxClass: "icheckbox_square-green", radioClass: "iradio_square-green", }) });</script>
</body></html> 